import request from '@/utils/request'

// 查询台风登录地点列表
export function listTyphoonLand(query) {
  return request({
    url: '/manage/typhoonLand/list',
    method: 'get',
    params: query
  })
}

// 查询台风登录地点详细
export function getTyphoonLand(typhoonLandId) {
  return request({
    url: '/manage/typhoonLand/' + typhoonLandId,
    method: 'get'
  })
}

// 新增台风登录地点
export function addTyphoonLand(data) {
  return request({
    url: '/manage/typhoonLand',
    method: 'post',
    data: data
  })
}

// 修改台风登录地点
export function updateTyphoonLand(data) {
  return request({
    url: '/manage/typhoonLand',
    method: 'put',
    data: data
  })
}

// 删除台风登录地点
export function delTyphoonLand(typhoonLandId) {
  return request({
    url: '/manage/typhoonLand/' + typhoonLandId,
    method: 'delete'
  })
}
